#include <iostream>
#include<fstream>
using namespace std;

struct h2
{
	int id;
	string name;
};

struct hello
{
	int id;
	string name;
	struct h2 hh;
};

int a(int a){
	// std::cout << "aaaaaaa"<<endl;
	
	return a+a;
}

void b(){
	std::cout << "bbbbbbb"<<endl;
}

int main(){
	int aa;
	aa=a(10);
	std::cout<< aa <<endl;
	b();
	// int *a;
	// a=&array;
	// for (int i = 0; i < 10; ++i)
	// {
	// 	a[i]=i;
	// 	std::cout << a[i]<< endl;	
	// }
	// std::cout << *a<< endl;	
	// int b[]={1,2,3,4,5};
	// std::cout << sizeof(b)/sizeof(b[0])<< endl;	
	// char data[100];
	// ifstream afile;
	// afile.open("test.txt");
	// afile>>data;
	// std::cout << data << endl;

	struct hello h[]={
		{1,"zz",{1,"dd"}},
		{2,"ww",{1,"dds"}}
	};
	int count=sizeof(h)/sizeof(h[0]);

	// std::cout << count << endl;
	std::cout << "Id:   " << "Name:    " << endl;
	for (int i = 0; i < count; ++i)
	{
		std::cout << " " << h[i].id << "    " << h[i].name <<endl; 
	}

	return 0;
}

